package model;

import com.fasterxml.jackson.annotation.JsonFormat;



import lombok.Data;
import org.hibernate.validator.constraints.Length;


import javax.validation.constraints.Digits;
import javax.validation.constraints.Future;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
public class SysUsers {

  private long id;
  @NotNull(message = "部门不能为空")
  private Long departmentId;
  private String dname;//科室名称
  @NotNull(message = "类型不能为空")
  private Long userType;
  private String headUrl;
  @Size(min = 6,message = "账号不低于6位")
  private String account;
  private String userName;
  private String password;
  private String salt;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @Future(message = "只能是将来的时间")
  private Date createdTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updatedTime;
  private long createdUserId;
  private long status;



}
